import { BasicColumn, FormSchema } from '@apps/antd-admin/src/components/Table'

export const columns: BasicColumn[] = [
  {
    title: '城市名称',
    dataIndex: 'cityName',
    width: 200,
  },
  {
    title: '城市排序',
    dataIndex: 'sort',
    width: 200,
  },
  {
    title: '创建日期',
    dataIndex: 'createTime',
    width: 200,
  },
]

export const searchFormSchema: FormSchema[] = [
  {
    field: 'cityName',
    label: '城市名称',
    component: 'Input',
    colProps: { span: 4 },
  },
]

export const formSchema: FormSchema[] = [
  {
    label: '城市名称',
    field: 'cityName',
    component: 'Input',
    required: true,
  },
  {
    label: '城市排序',
    field: 'sort',
    component: 'InputNumber',
    required: true,
  },
]
